package com.gzz.orchid.main.console.controller;

import com.gzz.orchid.common.webmvc.support.HttpResult;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author higmd
 */
@Slf4j
@RestController
@RequestMapping("/authorized")
@RequiredArgsConstructor
public class AuthorizedController {
    /**
     * 获取用户权限菜单
     */
    @RequestMapping("/own-menus")
    public HttpResult ownMenus() {
        log.info("获取用户权限菜单");
        return HttpResult.success();
    }

    /**
     * 获取用户权限
     */
    @RequestMapping("/own-permissions")
    public HttpResult ownPermissions() {
        log.info("获取用户权限");
        return HttpResult.success();
    }

    /**
     * 偿试
     */
    @RequestMapping("/attempt")
    public HttpResult attempt() {
        log.info("获取用户权限操作");
        return HttpResult.success();
    }
}
